<?php 
class indexAction extends sfAction{
	public function execute($request){
		$this->getResponse()->setContentType('image/jpeg');
		$captcha = str_replace('0', '9', UserStringHelper::random(6, true));
		$g = new AntiSpam($captcha);
		CaptchaHelper::setCaptcha($captcha);
		echo $this->renderText($g->Stroke());
		
	}
}